#ifndef __CLIENTPKTRECV_H
#define __CLIENTPKTRECV_H

#include "include.h"
#include "task.h"


typedef enum{
	TRS_NULL=0,
	TRS_USED,
	TRS_READING,
}TCP_RECV_STATE;

typedef struct{
	TCP_RECV_STATE State;
	struct netconn *pcb;
	u16 Len;
	u8 Data[2];
}TCP_RECV_BLOCK;

void Client_Recv_Send(u8 len,u8* buff);
u8 check_client_status(struct netconn *tcppcb,u8 status);
u8 check_client_isnull(void);
void Check_Client_Online(void);
void Client_Data(TCP_RECV_BLOCK* pRecv);
#endif 
